package com.weacar.adapter;

import android.content.Context;

import com.apkfuns.logutils.LogUtils;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;

public class TestAdapter extends CommonAdapter<String> {
    public TestAdapter(Context context, int layoutId, List datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, String item, int position) {
        // LogUtils.d("position = " + position);
//        FlowLayout flowLayout = viewHolder.getView(R.id.flow_tag);
//        List<String> al = new ArrayList<>();
//        al.add("集团车场");
//        al.add("0过户");
//        al.add("独家车源");
//        LayoutInflater inflater = LayoutInflater.from(mContext);
//        for (int i = 0; i < al.size(); i++) {
//            View v = inflater.inflate(R.layout.item_gv_car_tag, null);
//            TextView tv = v.findViewById(R.id.tv_tag);
//            tv.setText(al.get(i).toString());
//            flowLayout.addView(v);
//        }
    }
}
